package dws_fld

import (
	"github.com/gin-gonic/gin"
	"server/middleware"
)

type DwsFldRouter struct {
}


func (s *DwsFldRouter) InitDwsFldRouter(Router *gin.RouterGroup) {
	dwsFldRouter := Router.Group("dwsFld").Use(middleware.OperationRecord())
	dwsFldRouterWithoutRecord := Router.Group("dwsFld")
	var dwsFldApi = DwsFldApi{}
	{
		dwsFldRouter.POST("createDwsFld", dwsFldApi.CreateDwsFld)
		dwsFldRouter.DELETE("deleteDwsFld", dwsFldApi.DeleteDwsFld)
		dwsFldRouter.DELETE("deleteDwsFldByIds", dwsFldApi.DeleteDwsFldByIds)
		dwsFldRouter.PUT("updateDwsFld", dwsFldApi.UpdateDwsFld)
	}
	{
		dwsFldRouterWithoutRecord.GET("findDwsFld", dwsFldApi.FindDwsFld)
		dwsFldRouterWithoutRecord.GET("getAllDwsFlds", dwsFldApi.GetAllDwsFlds)
		dwsFldRouterWithoutRecord.GET("getDwsFldList", dwsFldApi.GetDwsFldList)
		dwsFldRouterWithoutRecord.POST("getDwsFld", dwsFldApi.GetDwsFld)
		dwsFldRouterWithoutRecord.GET("initDwsFld", dwsFldApi.InitDwsFld)
	}
}
